package com.hornsun.repository.mapper;

import com.hornsun.domain.dbo.Commodity;
import com.hornsun.domain.dbo.Information;
import com.hornsun.domain.dto.CouponRecordDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by 编译中... on 2018/4/26.
 */
@Component
public interface CommonMapper {

    List<CouponRecordDTO> getUsableCoupon(@Param("openid")String openid, @Param("offset")Integer offset);

    List<CouponRecordDTO> getUsedCoupon(@Param("openid")String openid,@Param("offset")Integer offset);

    List<CouponRecordDTO> getOverdueCoupon(@Param("openid")String openid,@Param("offset")Integer offset);

    List<CouponRecordDTO> getUsableCouponByType(@Param("openid")String openid,@Param("type")Byte type);
}
